﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Company_view.aspx.cs" Inherits="TRPOP.CRM.Web.Company_view" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查看客户信息</title>
    <script src="../Scripts/CheckInputInfo.js" type="text/javascript"></script>
    <script src="../Scripts/showtab.js" type="text/javascript"></script>
    <script src="../Scripts/utils.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/iColorPicker.js" type="text/javascript"></script>
    <script src="../Scripts/Information_save.js" type="text/javascript"></script>
    <script src="../Scripts/City.js" type="text/javascript"></script>
    <script type="text/javascript">
        function checkInfo() {

            //判断客户名称是否为空
            cmpName = document.getElementById("txtCompanyName");
            if (trim(cmpName.value).length <= 0) {
                alert("请输入客户名称");
                return false;
            }
            //判断联系人是否为空
            cntName = document.getElementById("txtContactName");
            if (trim(cntName.value).length <= 0) {
                alert("请输入客户联系人");
                return false;
            }
            //判断email是否为空
            email = document.getElementById("txtEmail");
            if (trim(email.value).length > 0 && !IsEMailCheck(email.value)) {
                ShowTab(2);
                alert("输入Email格式不正确");
                return false;
            }

            $("#txtProvince").val($("#DDLProvince option:selected").text());

            $("#txtCity").val($("#DDLCity option:selected").text());

            return true;
        }
    </script>
    <style type="text/css">
        #dvImg
        {
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
            width: 125px;
            height: 125px;
            border: solid 1px #a4c9e2;
            float: left;
        }
    </style>
</head>
<body>
    <form id="formEdit" runat="server" onsubmit="return CheckForm(this)">
    <div class="welcomBox">
        <div class=" welcomCont listPadding">
            <p class=" mb5 c_grey postion">
                您的当前位置：<a href="../welcome.aspx" title="首页">首页</a> > <a href="Company_AllList.aspx"
                    title="信息管理">客户 信息管理</a> > <span title="信息">信息</span></p>
            <h4 class="f14 listTits">
                <a href="#" class="js_on" id="Tab1" title="查阅客户信息" runat="server">查阅客户信息</a>
            </h4>
            <div class="listCon contentPadding">
                <table width="600" border="0" class="f14 tableForm">
                    <tr>
                        <td class="tr pr10">
                            <span>客户&nbsp;&nbsp;名称：</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCompanyName" CssClass="nameIpt" runat="server" Width="135px"
                                MaxLength="16" Height="19px"></asp:TextBox>
                            <font style="color: Red">*</font>
                            <asp:Label ID="lblNamePrompt" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="tr pr10">
                            <span>地址：</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtRegisterAdress" CssClass="nameIpt" runat="server" Width="200px"
                                MaxLength="100" Height="19px"></asp:TextBox>
                            <asp:DropDownList ID="ddlCountry" CssClass="searchddl" runat="server" Visible="false">
                                <asp:ListItem>中国</asp:ListItem>
                            </asp:DropDownList>
                            <select id="DDLProvince" class="searchddl" runat="server" />
                            <select id="DDLCity" class="searchddl" runat="server" />
                            <asp:HiddenField ID="txtProvince" Value="全国" runat="server" />
                            <asp:HiddenField ID="txtCity" Value="所有地区" runat="server" />
                            <asp:TextBox ID="txtCountry" Text="中国" runat="server" Visible="false" MaxLength="45"
                                Width="200px" CssClass="nameIpt"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tr pr10">
                            <span>联系人&nbsp;&nbsp;名称：</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactName" CssClass="nameIpt" runat="server" Width="135px"
                                MaxLength="16" Height="19px"></asp:TextBox>
                            <font style="color: Red">*</font>
                            <asp:RadioButtonList ID="rbtnlstGender" runat="server" RepeatDirection="Horizontal"
                                Height="16px" Width="95px" RepeatLayout="Flow">
                                <asp:ListItem Selected="True" Text="先生" Value="1"></asp:ListItem>
                                <asp:ListItem Text="女士" Value="0"></asp:ListItem>
                            </asp:RadioButtonList>
                            <asp:Label ID="lblNamePrompt1" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="tr pr10">
                            <span>电话：</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactPhone" runat="server" CssClass="nameIpt" MaxLength="15"
                                Width="135px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tr pr10">
                            <span>客户&nbsp;&nbsp;状态：</span>
                        </td>
                        <td class="style1">
                            <asp:DropDownList ID="ddlCompanyStatus" CssClass="searchddl" runat="server" Height="19px"
                                Width="135px">
                            </asp:DropDownList>
                            <span>&nbsp;&nbsp;来源：</span>
                            <asp:DropDownList ID="ddlCompanySource" CssClass="searchddl" runat="server" Height="19px"
                                Width="135px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tr pr10">
                            <span>类型：</span>
                        </td>
                        <td class="style1">
                            <asp:DropDownList ID="ddlCompanyCategory" CssClass="searchddl" runat="server" Height="19px"
                                Width="135px">
                            </asp:DropDownList>
                            <span>&nbsp;&nbsp;等级：</span>
                            <asp:DropDownList ID="ddlCompanyGrade" CssClass="searchddl" runat="server" Height="19px"
                                Width="135px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tr pr10">
                            <span>描述：</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" class="nametxtArea"
                                MaxLength="500"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" class="f14 tableForm">
                    <tr>
                        <td width="27%">
                            &nbsp;
                        </td>
                        <td>
                            <input type="button" class=" canelBtn" value="返回" onclick="history.go(-1);" />
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" class="f14 tableForm hidden">
                    <tr>
                        <td width="20%" class="tr pr10">
                            <span>联系人地址：</span>
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtContactAddress" CssClass="nameIpt" runat="server" Width="200px"
                                MaxLength="100" Height="19px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="20%" class="tr pr10">
                            <span>联系人手机：</span>
                        </td>
                        <td>
                            <asp:TextBox ID="txtContactTel" runat="server" CssClass="nameIpt" MaxLength="15"
                                Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="20%" class="tr pr10">
                            <span>Fax：</span>
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtFax" runat="server" CssClass="nameIpt" MaxLength="45" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="20%" class="tr pr10">
                            <span>Email：</span>
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtEmail" runat="server" CssClass="nameIpt" MaxLength="45" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="20%" class="tr pr10">
                            <span>邮编：</span>
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtPostalCode" CssClass="nameIpt" runat="server" MaxLength="10"
                                Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="20%" class="tr pr10">
                            <span>QQ：</span>
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtQQ" CssClass="nameIpt" runat="server" MaxLength="10" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="20%" class="tr pr10">
                            <span>WebSite：</span>
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtWebSite" CssClass="nameIpt" runat="server" MaxLength="100" Width="200px"
                                Text="http://"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
    <script type="text/javascript">
        InitCitySelect();
    </script>
</body>
</html>
